pull: Fix local pull with depth and truncated source history
authorDan Nicholson <dbn@endlessos.org>
Mon, 11 Jan 2021 23:52:34 +0000 (16:52 -0700)
committerDan Nicholson <dbn@endlessos.org>
Tue, 12 Jan 2021 21:19:01 +0000 (14:19 -0700)
commitd7f2955f3717b452b71cb16c5360ff21f79515e7
tree6fbb728e53dca3bdb7efc6e15f0df1e333fd78e4
parent20047ff1fea1b0d9193ee21d6df72d70b086090d
pull: Fix local pull with depth and truncated source history

The local pull path was erroring on any missing commit, but that
prevents a depth pull where the source repo has truncated history. As in
the remote case, this also tries to pull in a tombstone commit if the
source repo supports it.

Fixes: #2266
src/libostree/ostree-repo-pull.c
tests/test-local-pull-depth.sh